package org.kineticsproject.application;

import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.ui.part.ViewPart;
import org.kineticsproject.visualizations.HeartRatePieChart;
import org.jfree.chart.JFreeChart;
import org.jfree.experimental.chart.swt.ChartComposite;
import data.Exercise;
import data.State;

public class HeartRatePieChartView extends ViewPart  {

	public static final String ID = "org.kineticsproject.application.heartratepiechartview";

	State	state;
	
	public void createPartControl(Composite parent) {

		state = State.getInstance();
		
		Exercise exercise = state.getActiveExercise();
		HeartRatePieChart hr = new org.kineticsproject.visualizations.HeartRatePieChart();
		JFreeChart chart = hr.setupChart(exercise, "my heart rate");
		ChartComposite frame = new ChartComposite(parent, SWT.FILL,chart);
		
	}

	public void setFocus() {
	}
	

}
